<?php

/**
 * 
 * Autor				: 	Juan Jose Muñiz Juarez
 * Fecha de Creacion	: 	21/04/2012,  23:32:13
 * Version 				: 	1.0
 * Descripcion 			:
 */
class M_JGrid
   {
      private $_url;
      private $_datatype;
      private $_col_names;
      private $_col_model;
      private $_row_num;
      private $_row_list;
      private $_pager;
      private $_sort_name;
      private $_sort_order; // desc o asc
      private $_multiselect;
      private $_width;
      private $_height;
      private $_caption;
      private $_edit_url;
      private $_grid_complete;
      private $_extra;
      
      function __construct ( )
         {
            $this -> setUrl( array( "url" => "" ) );
            $this -> setCaption( array( "caption" => "" ) );
            $this -> setCol_names( array( "colNames" => array( "Uno", "Dos" ) ) );
            $this -> setCol_model( array( "colModel" => array( array( "name" => "Nombre" , "id" => "0" , "width" => "90" ) ,
                                                               array( "name" => "Nombre" , "id" => "0" , "width" => "90" ) ) ) );
            
            $this -> setDatatype( array( "datatype" => "xml" ) );
            $this -> setEdit_url( "" );
            $this -> setExtra( "" );
            $this -> setGrid_complete( "" );
            $this -> setHeight( array( "height" => "100%" ) );
            $this -> setMultiselect( array( "multiselect" => "false" ) );
            $this -> setRow_num( array( "rowNum" => "10" ) );
            $this -> setSort_order( array( "sortorder" => "desc" ) );
            $this -> setSort_name( array( "sortname" => "" ) );
            $this -> setWidth( array( "width" => "150" ) );
            $this -> setPager( array( "pager" => "" ) );
            $this -> setGrid_complete( array( "gridComplete" => "" ) );
            $this -> setRow_list( array( "rowList" => array( 10, 50, 100 ) ) );
         }
	/**
     * @return the $_url
     */
      public function getUrl ( )
         {
            return $this->_url;
         }
   
	/**
     * @return the $_datatype
     */
      public function getDatatype ( )
         {
            return $this->_datatype;
         }
   
	/**
     * @return the $_col_names
     */
      public function getCol_names ( )
         {
            return $this->_col_names;
         }
   
	/**
     * @return the $_col_model
     */
      public function getCol_model ( )
         {
            return $this->_col_model;
         }
   
	/**
     * @return the $_row_num
     */
      public function getRow_num ( )
         {
            return $this->_row_num;
         }
   
	/**
     * @return the $_row_list
     */
      public function getRow_list ( )
         {
            return $this->_row_list;
         }
   
	/**
     * @return the $_pager
     */
      public function getPager ( )
         {
            return $this->_pager;
         }
   
	/**
     * @return the $_sort_name
     */
      public function getSort_name ( )
         {
            return $this->_sort_name;
         }
   
	/**
     * @return the $_sort_order
     */
      public function getSort_order ( )
         {
            return $this->_sort_order;
         }
   
	/**
     * @return the $_multiselect
     */
      public function getMultiselect ( )
         {
            return $this->_multiselect;
         }
   
	/**
     * @return the $_width
     */
      public function getWidth ( )
         {
            return $this->_width;
         }
   
	/**
     * @return the $_height
     */
      public function getHeight ( )
         {
            return $this->_height;
         }
   
	/**
     * @return the $_caption
     */
      public function getCaption ( )
         {
            return $this->_caption;
         }
   
	/**
     * @return the $_edit_url
     */
      public function getEdit_url ( )
         {
            return $this->_edit_url;
         }
   
	/**
     * @return the $_grid_complete
     */
      public function getGrid_complete ( )
         {
            return $this->_grid_complete;
         }
   
	/**
     * @return the $_extra
     */
      public function getExtra ( )
         {
            return $this->_extra;
         }
   
	/**
     * @param field_type $_url
     */
      public function setUrl ( $_url )
         {
            $this->_url = $_url;
         }
   
	/**
     * @param field_type $_datatype
     */
      public function setDatatype ( $_datatype )
         {
            $this->_datatype = $_datatype;
         }
   
	/**
     * @param field_type $_col_names
     */
      public function setCol_names ( $_col_names )
         {
            $this->_col_names = $_col_names;
         }
   
	/**
     * @param field_type $_col_model
     */
      public function setCol_model ( $_col_model )
         {
            $this->_col_model = $_col_model;
         }
   
	/**
     * @param field_type $_row_num
     */
      public function setRow_num ( $_row_num )
         {
            $this->_row_num = $_row_num;
         }
   
	/**
     * @param field_type $_row_list
     */
      public function setRow_list ( $_row_list )
         {
            $this->_row_list = $_row_list;
         }
   
	/**
     * @param field_type $_pager
     */
      public function setPager ( $_pager )
         {
            $this->_pager = $_pager;
         }
   
	/**
     * @param field_type $_sort_name
     */
      public function setSort_name ( $_sort_name )
         {
            $this->_sort_name = $_sort_name;
         }
   
	/**
     * @param field_type $_sort_order
     */
      public function setSort_order ( $_sort_order )
         {
            $this->_sort_order = $_sort_order;
         }
   
	/**
     * @param field_type $_multiselect
     */
      public function setMultiselect ( $_multiselect )
         {
            $this->_multiselect = $_multiselect;
         }
   
	/**
     * @param field_type $_width
     */
      public function setWidth ( $_width )
         {
            $this->_width = $_width;
         }
   
	/**
     * @param field_type $_height
     */
      public function setHeight ( $_height )
         {
            $this->_height = $_height;
         }
   
	/**
     * @param field_type $_caption
     */
      public function setCaption ( $_caption )
         {
            $this->_caption = $_caption;
         }
   
	/**
     * @param field_type $_edit_url
     */
      public function setEdit_url ( $_edit_url )
         {
            $this->_edit_url = $_edit_url;
         }
   
	/**
     * @param field_type $_grid_complete
     */
      public function setGrid_complete ( $_grid_complete )
         {
            $this->_grid_complete = $_grid_complete;
         }
   
	/**
     * @param field_type $_extra
     */
      public function setExtra ( $_extra )
         {
            $this->_extra = $_extra;
         }
   
	
   }

?>